<?php

require_once 'Zend/View/Helper/FormElement.php';


class Ext_View_Helper_FormSpan extends Zend_View_Helper_FormElement
{

    public function formSpan($name, $value = null, $attribs = null)
    {
        $info = $this->_getInfo($name, $value, $attribs);
        extract($info); // name, value, attribs, options, listsep, disable
         
        $xhtml = '<span'
               . ' name="' . $this->view->escape($name) . '"'
               . ' id="' . $this->view->escape($id) . '"'
               . $this->_htmlAttribs($attribs)
               . '>'
               . $value
               . '</span>';
         
        return $xhtml;
    }
}
